package com.iotechn.unimall.app.api.shopMoney;

import com.iotechn.unimall.core.annotation.HttpMethod;
import com.iotechn.unimall.core.annotation.HttpOpenApi;
import com.iotechn.unimall.core.annotation.HttpParam;
import com.iotechn.unimall.core.annotation.HttpParamType;
import com.iotechn.unimall.core.annotation.param.NotNull;
import com.iotechn.unimall.core.exception.ServiceException;
import com.iotechn.unimall.data.domain.ShopMoneyDO;
import com.iotechn.unimall.data.domain.CmsArticleTypeDO;
import com.iotechn.unimall.data.model.Page;

import java.util.List;

/**
 * 文章
 *
 * @author hct
 * @email 77802226@qq.com
 * @date 2020-04-21 13:35:44
 */
@HttpOpenApi(group = "article", description = "")
public interface ShopMoneyService {

    @HttpMethod(description = "列表")
    public Page<ShopMoneyDO> list(
            @HttpParam(name = "pageNo", type = HttpParamType.COMMON, description = "页码", valueDef = "1") Integer page,
            @HttpParam(name = "limit", type = HttpParamType.COMMON, description = "页长度", valueDef = "20") Integer limit,
            @HttpParam(name = "shopId", type = HttpParamType.COMMON, description = "项目id") Long shopId

    ) throws ServiceException;


    @HttpMethod(description = "详情")
    public ShopMoneyDO detail(
            @NotNull @HttpParam(name = "id", type = HttpParamType.COMMON, description = "Id") Long id) throws ServiceException;


}

